Skip to main content

Partner Fees Collected

Queries the total amount of fees collected from swaps on the specified chain. Returns fees for all denoms.

query Partner_fees_collected($chainUid: String!) {
factory(chain_uid: $chainUid) {
partner_fees_collected {
total {
totals {
denom
amount
}
}
}
}
}

Example

curl --request POST \
    --header 'content-type: application/json' \
    --url 'https://api.euclidprotocol.com/graphql' \
    --data '{"query":"query Partner_fees_collected($chainUid: String!) {\n  factory(chain_uid: $chainUid) {\n    partner_fees_collected {\n      total {\n        totals {\n          denom\n          amount\n        }\n      }\n    }\n  }\n}","variables":{"chainUid":"archway"}}'

Open in Playground

Arguments

ArgumentTypeDescription
chainUidString!The unique identifier of the chain.

Return Fields

FieldTypeDescription
denomStringThe denomination of the token.
amountStringThe total of fees collected for the above denomination.